﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class KhachHangBUS
    {
        public static List<KhachHangDTO> SelectAll()
        {
            return KhachHangDAO.SelectAll();
        }

        public static List<KhachHangDTO> Select_by_Name(string TenKH)
        {
            return KhachHangDAO.Select_by_Name(TenKH);
        }

        public static bool Insert(KhachHangDTO kh)
        {
            return KhachHangDAO.Insert(kh);
        }

        public static bool Delete(int MaKH)
        {
            return KhachHangDAO.Delete(MaKH);
        }

        public static bool Update(KhachHangDTO kh)
        {
            return KhachHangDAO.Update(kh);
        }
    }
    
}
